package cn.haoma.base.utils;

import android.app.Activity;
import android.app.Dialog;

/**
 * Created by ilioili on 2015/3/9.
 */
public class DialogUtil {
    public static Dialog getLoadingDialog(Activity activity) {
        final Dialog dialog = new Dialog(activity);
        //        dialog.setCancelable(true);
        //        dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE);
        //        dialog.setContentView(R.layout.dialog_confirm);
        //        dialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));
        //        ((TextView)dialog.getWindow().findViewById(R.id.tv_title)).setText(message);
        //        dialog.getWindow().findViewById(R.id.tv_ok).setOnClickListener(new View.OnClickListener() {
        //            @Override
        //            public void onClick(View v) {
        //                runnable.run();
        //                dialog.dismiss();
        //            }
        //        });
        //        dialog.getWindow().findViewById(R.id.tv_cancel).setOnClickListener(new View.OnClickListener() {
        //            @Override
        //            public void onClick(View v) {
        //                dialog.dismiss();
        //            }
        //        });
        return dialog;
    }
}
